using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace WindowsPhoneTron.Logic
{
    public class Player : Unit
    {
        int speed = 1;
        int speedChoice = -1;

        public int Speed
        {
            get { return speed; }
        }

        public int SpeedChoice
        {
            get { return speedChoice; }
            set { speedChoice = value; }
        }

        public void Accelerate()
        {
            if (speed == NORMAL)
                speed = FAST;
            else if (speed == FAST)
                speed = FASTER;
        }

        public void Decelerate()
        {
            if (speed == FASTER)
                speed = FAST;
            else if (speed == FAST)
                speed = NORMAL;
        }

        public Player()
        {
            ChosenDirection = 0.0f;
            Direction = ChosenDirection;
            Position = new Point(2, 14);
        }
    }
}
